#include "crow.h"

int main()
{
    crow::SimpleApp app;

    CROW_ROUTE(app, "/")
    ([]() {
        return "Hello, World!";
    });

    CROW_ROUTE(app, "/json")
    ([]() {
        crow::json::wvalue x;
        x["message"] = "Hello, JSON!";
        x["status"] = 200;
        return x;
    });

    CROW_ROUTE(app, "/hello/<string>")
    ([](const std::string& name) {
        return "Hello, " + name + "!";
    });

    app.port(8008).multithreaded().run();
}
